package ru.athena.runTool.Model;


@SuppressWarnings("serial")
public class CompositeNode extends LeafNode {
	

	/**
	 * @param userObject
	 */
	public CompositeNode(Object userObject) {
		super(userObject);
	}
	
	@Override
	public boolean accept( HierarchicalVisitor visitor )  throws Exception {
		if ( visitor.visitEnter(this) ) {
			for (Object node : this.children) {
				AbstractNode n = (AbstractNode)node;
				n.accept(visitor);
			}
			return visitor.visitLeave(this);
		}
		return false;
	}
}
